WORadioButton
Synopsis
WORadioButton{[name = fieldName;]
[checked = YES|NO;] |
[value = defaultValue;
[selection = selectedValue]];
[disabled = YES|NO;] ... };
Description
WORadioButton represents itself as an on-off switch. Radio buttons are normally grouped, since the most important aspect of their behavior is that they allow the user to select no more than one of several choices. If the user selects one button, the previously selected button (if any) becomes deselected.
Since radio buttons normally appear as a group, WORadioButton is commonly found within a WORepetition.
- name
-
A name that identifies the radio button's group. Only one radio button at a time can be selected within a group.
- checked
-
On output, if checked evaluates to YES, the radio button appears in the selected state. On input, checked reflects the state the user left the radio button in: YES if checked; NO if not.
- value
-
Sets the value of this input element. If not specified, WebObjects provides a default value.
- selection
-
If selection is specified in addition to value, on output if selection is the same as value, the radio button appears selected. On input the selection attribute is set to the value of the selected radio button.
- disabled
-
If disabled evaluates to YES, this element appears in the page but is not active.
Note that either checked or value is required in a WORadioButton declaration, but that they are mutually exclusive.
Examples